package com.project.system.domain.entity;

import com.project.common.domain.po.DbBase;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author : [chg]
 * @className : Salary
 * @description : 薪资实体
 * @createTime : [2025/7/9 11:30]
 */
@Entity
@Data
@Table(name = "tb_employee_salary")
@org.hibernate.annotations.Table(appliesTo = "tb_employee_salary", comment = "员工薪资")
public class HrSalary extends DbBase {
    @Column(columnDefinition = "varchar(100) DEFAULT NULL COMMENT '层级名称'")
    private String name; // 员工层级名称（1-主管,2-组长,3-正式工,4-临时工,5-试用工,6-其他）

    @Column(columnDefinition = "int DEFAULT NULL COMMENT '节假日补贴(>=1 大于1才补贴)'")
    private BigDecimal holidaySubsidy; //
    //加班补贴
    @Column(columnDefinition = "int DEFAULT NULL COMMENT '加班补贴(>=1 大于1才补贴)'")
    private BigDecimal overtimeSubsidy;

    @Column(columnDefinition = "decimal(10,2) DEFAULT NULL COMMENT '每日薪资（8小时计算）'")
    private BigDecimal amount; // 薪资
    
    @Column(columnDefinition = "varchar(500) DEFAULT NULL COMMENT '备注'")
    private String remark; // 备注
}